﻿<?xml version="1.0" encoding="utf-8" ?>
<Log4Nez xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///C:\Users\Nezumi\Documents\Visual Studio 2010\Projects\Log4Net\ConfigSchema\log4nezConfig-schema.xsd">
	<Configuration>
		<!-- 1:errors 2:warning 3:Information 4:Debug -->
		<LogTraceLevel level="4"/>
	</Configuration>
	<Loggers>
		<DatabaseLogger connectionString="TestConsoleApplication.Properties.Settings.GAPConnectionString" tableName="log" loggerName="dblog">
			<PropertiesMapping class="TestConsoleApplication.Message">
				<add property="actionUser" column="username" />
				<add property="date" column="date" />
				<add property="message" column="message" />
			</PropertiesMapping>
		</DatabaseLogger>

		<EventLogLogger eventSourceName="eventSource" loggerName="logEvent" sourceName="miaApplicazione">
			<PropertiesMapping class="TestConsoleApplication.Message">
				<Origin property="originid" />
				<EventId property="event" />
				<CategoryId property="category" />
				<InstanceId property="instance" />
				<Message property="message" />
			</PropertiesMapping>

		</EventLogLogger>
		<CsvLogger filelocation="C:\log4nez" loggerName="pippo" filenameFormat="test_{0}_{1}.log">
			<PropertiesMapping class="TestConsoleApplication.Message">
				<add property="instance" column="originid" />
				<add property="message" column="message" />
				<add property="userAction" column="username" />
			</PropertiesMapping>
		</CsvLogger>
	</Loggers>
</Log4Nez>
